package com.cybersapien.comng.engine.event.engine.mock;

import com.cybersapien.comng.engine.event.engine.EventEngineListenerBase;
import com.cybersapien.comng.engine.event.engine.IEventEngine;
import com.cybersapien.comng.engine.event.engine.IEventEngineListerner;

public class EventEngineListenerMock extends EventEngineListenerBase implements IEventEngineListerner {

	private static final long serialVersionUID = -2606494374922109053L;

	public EventEngineListenerMock(String id) {
		super(id);
	}

	String id;
	boolean undergone = false;
	int countUndergo = 0;

	@Override
	public void undergoEvent(IEventEngine event) {
		undergone = true;
		countUndergo++;
	}

	public boolean isUndergone() {
		return this.undergone;
	}

	public int getCountUndergo() {
		return this.countUndergo;
	}

}
